package org.abbett.eskine.dao.jpa;

import org.springframework.transaction.annotation.Transactional;

/**
 * Just a convenience class as most entities use Integer as their PK. Not sure
 * if this is worth keeping.
 * 
 * @param <E>
 *            Type of entity this DAO covers
 */
@Transactional
public abstract class AbstractJpaDao<E extends JPAPersistable<Integer>> extends GenericAbstractDao<E, Integer> {
    // Not sure why, but persists don't work from parent method.
    @Override
    public E save(E entity) {
        return em.merge(entity);
    }
}// clickframes::version=3545816841::clickframes